package com.wtwd.device.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wtwd.device.model.entity.GroupDial;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zdl
 * @since 2023-01-03
 */
@Mapper
public interface GroupDialMapper extends BaseMapper<GroupDial> {

    int bathInsertOrUpdate(@Param("list") List<GroupDial> groupDials);

    int deleteByGroupId(@Param("groupInfoId") Integer groupInfoId);

    int deleteGroupDial(@Param("groupId") Integer groupId, @Param("dialId") Integer dialId);

    int bathDelGroupDial(@Param("list") List<GroupDial> delGroupDial);
}
